<?php

Route::post('api/admin/login', 'Auth\Controllers\AuthController@login');
Route::post('api/web/login', 'Auth\Controllers\AuthController@login');
Route::post('api/web/open/login', 'Auth\Controllers\AuthController@webOpenLogin');

Route::post('api/web/user/info', 'Auth\Controllers\AuthController@userInfoUpdate')->middleware('apiAuth');
Route::get ('api/web/user/one', 'Auth\Controllers\AuthController@userInfoOne');


Route::get ('api/web/banner/index', 'Web\Controllers\HouseController@bannerIndex');

Route::get ('api/web/account/recharge', 'Web\Controllers\HouseController@bannerIndex');


Route::post('api/web/save-mobile', 'Auth\Controllers\AuthController@save_mobile')->middleware('apiAuth');
Route::get ('api/web/auth/me', 'Auth\Controllers\AuthController@webGetMe')->middleware('apiAuth');

Route::post('api/web/house/release', 'Web\Controllers\HouseController@releaseOrUpdate')->middleware('apiAuth');
Route::get ('api/web/house/mine', 'Web\Controllers\HouseController@indexMine')->middleware('apiAuth');
Route::get ('api/web/house/others', 'Web\Controllers\HouseController@indexOthers');
Route::post('api/web/house/delete', 'Web\Controllers\HouseController@houseDelete')->middleware('apiAuth');
Route::post('api/web/house/ding', 'Web\Controllers\HouseController@ding')->middleware('apiAuth');

Route::post('api/web/{source}/comment', 'Web\Controllers\CommentController@comment')->middleware('apiAuth');
Route::post('api/web/{source}/comment-reply', 'Web\Controllers\CommentController@commentReply')->middleware('apiAuth');
Route::get ('api/web/{source}/comment', 'Web\Controllers\CommentController@getComment');
Route::get ('api/web/{source}/comment-reply', 'Web\Controllers\CommentController@getCommentReply');
//Route::get ('api/web/{source}/count', 'Web\Controllers\CommentController@getCommentReply');

Route::post('api/web/house-wanted/release', 'Web\Controllers\HouseController@houseWantedReleaseOrUpdate')->middleware('apiAuth');

Route::get ('api/web/house-wanted/mine', 'Web\Controllers\HouseController@houseWantedMine')->middleware('apiAuth');
Route::get ('api/web/house-wanted/others', 'Web\Controllers\HouseController@houseWantedOther');
Route::post('api/web/house-wanted/delete', 'Web\Controllers\HouseController@houseWantedDelete')->middleware('apiAuth');

Route::post('api/web/house-order/order', 'Web\Controllers\HouseController@houseOrder')->middleware('apiAuth');
Route::get ('api/web/house-order/index', 'Web\Controllers\HouseController@houseOrderIndex')->middleware('apiAuth');
Route::post('api/web/house-order/update', 'Web\Controllers\HouseController@orderHouseStatusUpdate')->middleware('apiAuth');
Route::any ('/api/web/house-order/{order_id}/mini-payment/notify', 'Web\Controllers\HouseController@miniPaymentNotify');

Route::get ('api/web/house-wanted/index', 'Web\Controllers\HouseController@houseWantedIndex');
Route::get ('/api/web/house/index', 'Web\Controllers\HouseController@houseIndex');
Route::get ('/api/web/community/index', 'Web\Controllers\HouseController@communityIndex');
Route::get ('/api/web/subway/index', 'Web\Controllers\HouseController@subwayIndex');
Route::get ('/api/web/site/index', 'Web\Controllers\HouseController@subwaySiteIndex');
Route::get ('api/web/house/one', 'Admin\Controllers\HouseController@houseById');

Route::post('api/web/bbs/release', 'Web\Controllers\BbsController@bbsRelease')->middleware('apiAuth');
Route::get ('api/web/bbs/index', 'Web\Controllers\BbsController@bbsIndex');
Route::get ('api/web/bbs/mine', 'Web\Controllers\BbsController@bbsMine')->middleware('apiAuth');
Route::get ('api/web/bbs/others', 'Web\Controllers\BbsController@bbsOthers');
Route::post('api/web/bbs/delete', 'Web\Controllers\BbsController@bbsDelete')->middleware('apiAuth');

Route::get ('api/web/user/invited-me', 'Account\Controllers\AccountController@whoInvitedMe')->middleware('apiAuth');
Route::get ('api/web/user/invited', 'Account\Controllers\AccountController@IinvitedWho')->middleware('apiAuth');
Route::get ('api/web/account/balance', 'Account\Controllers\AccountController@balance')->middleware('apiAuth');
Route::post('api/web/account/recharge', 'Account\Controllers\AccountController@recharge')->middleware('apiAuth');
Route::post('api/web/account/withdraw', 'Account\Controllers\AccountController@withdraw')->middleware('apiAuth');
Route::post('api/web/account/{order_id}/mini-payment/notify', 'Account\Controllers\AccountController@rechargeNotify');

Route::get ('api/web/account/vip/products', 'Account\Controllers\AccountController@vipProducts');
Route::post('api/web/account/vip/order', 'Account\Controllers\AccountController@vipOrder')->middleware('apiAuth');
// 评论
Route::get ('api/web/commit/tag', 'Account\Controllers\AccountController@getCommitTag');
Route::post('api/web/commit/commit', 'Account\Controllers\AccountController@commit')->middleware('apiAuth');
Route::get ('api/web/commit/mine', 'Account\Controllers\AccountController@getCommitMine')->middleware('apiAuth');
Route::get ('api/web/commit/host', 'Account\Controllers\AccountController@getCommitHost');

Route::get ('api/web/{source}/collection/iscollect', 'Web\Controllers\CollectionController@isCollect')->middleware('apiAuth');
Route::post('api/web/{source}/collection/collect', 'Web\Controllers\CollectionController@collect')->middleware('apiAuth');
Route::get ('api/web/{source}/collection/index', 'Web\Controllers\CollectionController@collectIndex')->middleware('apiAuth');

Route::get ('api/web/signin/status', 'Account\Controllers\AccountController@getSignInStatus')->middleware('apiAuth');
Route::post('api/web/signin/signin', 'Account\Controllers\AccountController@signIn')->middleware('apiAuth');

Route::post('api/web/chat/chat', 'Account\Controllers\AccountController@chat')->middleware('apiAuth');
Route::get ('api/web/chat/index', 'Account\Controllers\AccountController@chatIndex')->middleware('apiAuth');
Route::get ('api/web/chat-message/index', 'Account\Controllers\AccountController@messageIndex')->middleware('apiAuth');

Route::post('api/web/contact/contact', 'Account\Controllers\AccountController@contactUs')->middleware('apiAuth');

Route::get ('api/web/user/transaction/mine', 'Account\Controllers\AccountController@transactionMine')->middleware('apiAuth');





Route::get ('api/system/qiniu/token', 'System\Controllers\SystemController@uploadToken')->middleware('api.auth');
Route::any ('api/system/callback', 'System\Controllers\SystemController@logRequest');
Route::any ('api/system/qiniu/callback', 'System\Controllers\SystemController@qiniuCallback');
Route::post('api/system/wechat/linkurl', 'System\Controllers\SystemController@miniappUrl');
Route::post('api/system/wechat/code-unlimit', 'System\Controllers\SystemController@miniappCodeUnlimit');